package org.chen.common.hotel.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class HotelApiConfigDTO {
    @Min(value = 5000, message = "超时时间不能少于5秒")
    @Max(value = 60000, message = "超时时间不能超过60秒")
    private Integer timeout;

    @Min(value = 0, message = "重试次数不能为负数")
    @Max(value = 5, message = "重试次数不能超过5次")
    private Integer retryCount;

    private String cookie;

    private String phantomToken;

    private String p;

    private String agent;

    private String cid;

    private String aid;

    private String sid;

    private String vid;

    private String guid;

    private Boolean hotelEnabled;
}
